﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SilverBoxClient
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private QRCodeDownloader downloader = new QRCodeDownloader();

        private void button1_Click(object sender, EventArgs e)
        {
            String content = textBox1.Text.ToString();

            bool result = downloader.downloadByContent(content);
            if (result)
            {
                MessageBox.Show("下载完成");
            }
            else
            {
                MessageBox.Show("下载失败");
            }
        }
    }
}
